package com.lanou.student.service.impl;

import com.lanou.student.bean.User;
import com.lanou.student.mapper.UserMapper;
import com.lanou.student.mapper.impl.UserMapperImpl;
import com.lanou.student.service.UserService;

/**
 * @author zyj
 * @date 2022年06月01日 9:16
 */
public class UserServiceImpl implements UserService {
    private UserMapper userMapper;

    public UserServiceImpl() {
        userMapper = new UserMapperImpl();
    }

    public boolean regester(User user) {
        // TODO Auto-generated method stub
        return userMapper.regester(user);
    }

    public User getUser(String userName, String email) {
        // TODO Auto-generated method stub
        return userMapper.getUser(userName,email);
    }

    @Override
    public boolean resetPassword(User u) {
        return userMapper.resetPassword(u);
    }
}
